package com.quan.mapper;

import com.quan.entity.Student;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface StudentMapper extends Mapper<Student> {

    @Select("select distinct salary from student")
    List<String> getStudentSalary();

    List<Map<String,Object>> getStudent();
    //
//    @Select(" select s.id,s.name,salary from student s , teacher t\n" +
//            "             where s.id = t.id and t.id=3")
    List<Map<String,Object>> getStudentData();

//    void insertStudent(Student student);
}
